<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.hbyj.util.ChangeTool"%>
<%@page import="com.hbyj.hbm.vo.Members"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

Members mbInfo = (Members)request.getSession().getAttribute("SysUser");
String lyCode = "";
try{
	lyCode = mbInfo.getLyCode();
}catch(Exception e){
	 response.sendRedirect("login.jsp");
	 return;
}


int flag = ChangeTool.ChangeArea(lyCode).length();
String shengName = "";String shiName = "";String xianName = "";
String shengCode = "";String shiCode = "00";String xianCode = "00";
if(flag==2){
	shengCode = lyCode;
	shengName = ChangeTool.getFinalValue(lyCode);
}else if(flag==4){
	shengCode = lyCode.substring(0,2)+"0000";
	shengName = ChangeTool.getFinalValue(shengCode);
	shiCode = lyCode.substring(0,4)+"00";
	shiName = ChangeTool.getFinalValue(shiCode);
}else if(flag==6){
	shengCode = lyCode.substring(0,2)+"0000";
	shengName = ChangeTool.getFinalValue(shengCode);
	shiCode = lyCode.substring(0,4)+"00";
	shiName = ChangeTool.getFinalValue(shiCode);
	xianCode = lyCode;
	xianName = ChangeTool.getFinalValue(xianCode);
}
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
 
    
    <title>My JSP 'xxcj.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<link rel="stylesheet" type="text/css" href="../../style/zbCss/pageTable.css" />
	<link href="../../style/zbCss/easyui_new.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="../../lib/data.js"></script>
	<script  type="text/javascript" src="../../lib/jquery-1.7.1.min.js"></script>
	<script  type="text/javascript" src="../../lib/jquery.form.js"></script>
	<script  type="text/javascript" src="../../lib/easyui/jquery.easyui.min_new.js"></script>
	<script type="text/javascript" src="../../lib/easyui/json2.js"></script>
	<script type="text/javascript"src="../../My97DatePicker/WdatePicker.js"></script>
	<script type="text/javascript" src="../../js/yjdcfunctiondlg/xxcj.js"></script>
	<script type="text/javascript" src="../../js/util.js"></script>
	
	<script type="text/javascript">
	$(function(){
		debugger;
		setOption('china','sheng');
	 	$("#sheng").attr("disabled","disabled");
        setSltDefaultVal("sheng",<%=shengCode%>);
        changeShengItem(document.getElementById("sheng").value,'shi');
        
        initFileInput();
       
	})
	</script>
	<style type="text/css">
	.resStat{
		margin-left: 15px;
	}
	td{
    		border:1px solid #D8DBE0;
    	}
	</style>
  </head>
  
  <body>
  <div id="tabxxcjdiv"  class="easyui-tabs" style="width:820px;height: 400px">
  <div title="数据传输" style="padding: 0px;height: 300px;width: 400px;" >
  <select style="display: none" id="sheng" onchange="changeShengItem(this.value,'shi')"><option  selected="selected" value="" >请选择省</option></select>
  
   <table class="innerStyle" style="width: 90%; margin-left:20px;margin-top: 5px">
    
   <tr><th colspan="4"><b style="font-size: 8px">应急调查设备数据传输</></th></tr>
   <tr><td>省市区划</td>
	<td><select id="shi" 	onchange="changeShiItem(this.value,'xian');">
	<option  selected="selected" value="-1">湖北省</option></select></td><td>县级区划</td><td>
	<select id="xian" ">
	<option  selected="selected" value="-1">请选择县</option></select></td></tr>
	
   <tr><td>应急调查设备数据库IP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td><input type="text" id="targetIp" value="127.0.0.1"/></td><td>应急调查设备数据库端口&nbsp;&nbsp;&nbsp;</td><td><input type="text" id="targetPort" value="1433"/></td></tr>
   <tr><td>应急调查设备数据库用户名</td><td><input type="text" id="targetDbUsername" value="sa"/></td><td>应急调查设备数据库密码&nbsp;&nbsp;&nbsp;</td><td><input type="text" id="targetDbPassword" value="guest"/></td></tr>
   <tr><td>应急调查设备数据库名称&nbsp;&nbsp;&nbsp;</td><td ><input type="text" id="targetDbName" value="hbdzzh"/></td><td></td><td></td></tr>
   
   <tr><td colspan="4"><input type="button" id="xxcjBtn" value="采集" class="btn_2z"
										onclick="getDbinfoFromServer()" /><span id="loading" style="display: none"><img src="../../image/loading.gif"/>传输中</span></td></tr>
   </table>
   <table id="tblList"  style="width: 90%; margin-left:20px">
   <tr><th colspan="2">数据下载清单</th></tr>
   <tr><td><input type="checkbox" checked="checked" disabled="disabled" id="jcdc02"  value="JCDC_JCDC02" />基础调查(崩塌)<span class="resStat"></span></td><td><input type="checkbox" checked="checked" disabled="disabled" id="jcdc00" value="JCDC_JCDC00"/>斜坡<span class="resStat"></span></td></tr>
   <tr><td><input type="checkbox" checked="checked" disabled="disabled" id="jcdc01" value="JCDC_JCDC01" />基础调查(滑坡)<span class="resStat"></span></td><td><input type="checkbox" checked="checked" disabled="disabled" id="fzya" value="FZYA_FZYA03"/>防灾预案<span class="resStat"></span></td></tr>
   <tr><td><input type="checkbox" checked="checked" disabled="disabled" id="jcdc03" value="JCDC_JCDC03"  />基础调查(泥石流)<span class="resStat"></span></td><td><input type="checkbox" checked="checked" disabled="disabled" id="qcqf" value="QCQF_QCQF01"/>群测群防<span class="resStat"></span></td></tr>
   <tr><td><input type="checkbox" checked="checked" disabled="disabled" id="jcdc07"  value="JCDC_JCDC07" />基础调查(地面沉降)<span class="resStat"></span></td><td><input type="checkbox" checked="checked" disabled="disabled" id="zdzh" value="ZDZQ_ZDZQ01"/>重大灾害<span class="resStat"></span></td></tr>
   <tr><td ><input type="checkbox" checked="checked" disabled="disabled" id="jcdc04" value="JCDC_JCDC04"  />基础调查(岩溶塌陷)<span class="resStat"></span></td><td><input type="checkbox" checked="checked" disabled="disabled" id="yjdc" value="YJDC_YJDC01"/>应急调查<span class="resStat"></span></td></tr>
   <tr><td ><input type="checkbox" checked="checked" disabled="disabled" id="jcdc06"  value="JCDC_JCDC06" />基础调查(地裂缝)<span class="resStat"></span></td><td><input type="checkbox" checked="checked" disabled="disabled" id="jbqk" value="JBQK01"/>基本情况<span class="resStat"></span></td></tr>
   <tr></tr>
   <tr></tr>
   <tr></tr>
   <tr></tr>
   </table>
   </div>
   <div title="数据导入" style="padding: 0px;height: 300px;width: 400px;" >
   <form id="yjdckbForm" method="post" enctype="multipart/form-data" >
		<table style="font-size:12px;width:800px;border-collapse: collapse;" >
			<tr>
				<td>报告主编:</td><td><input  type="text" name="yjdc06.yjdc06030"/></td><td>提交报告单位:</td><td><input type="text"  name="yjdc06.yjdc06020"/></td>
			</tr>
			<tr>
				<td>主编专业职称:</td><td><input  type="text" name="yjdc06.yjdc06040"/></td><td>参与编写人员:</td><td><input type="text"  name="yjdc06.yjdc06050"/></td>
			</tr>
			<tr>
				<td>报告内容摘要:</td><td colspan="3"><input type="text" style="width:550px;" name="yjdc06.yjdc06060"/></td>
			</tr>
		
			<tr>
				<td>报告文件:</td><td colspan="3"><input type="file" id="kbFile" name="wordFile"/></td>
			</tr>
			<tr style="display:none">
				<td><input type="text" id="kbFileName"/></td>
			</tr>
		</table>
	</form>
		<input type="button" value="提交" onclick = "submitClickFunc();" style="margin-left:150px;margin-right:100px;"/><input type="button" value="重置" onclick = ""/>
   </div>
   </div>
  </body>
</html>
